/*
 *	Copyright © 2013 Changsha kk Network Technology Co., Ltd. All rights reserved.
 *	长沙市师说网络科技有限公司 版权所有
 *	http://www.kk.com
 */

package com.hlingsoft.kkh.dao;

import com.hlingsoft.kkh.entity.Event;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 活动
 * 
 * @author kk
 * 
 */
@Repository
public interface EventDao {
	 
		public List<Event> getUserEvents(@Param("offset") long offset,
										 @Param("rows") long rows);
		
		public List<Event> getMerchantEvents(@Param("offset") long offset,
											 @Param("rows") long rows);
		
		public int getUserEventsCount();
		public int getMerchantCount();

		public int deleteEvent(@Param("id") long id);

		public int addEvent(Event event);
		
		public Event getEventById(@Param("eventId") long eventId);



}
